home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / KeyTranslation.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  2KB  |  72 lines

  1. /*
  2.      File:        KeyTranslation.h
  3.  
  4.      Version:    Technology:    System 8.0
  5.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  6.  
  7.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16. #ifndef __KEYTRANSLATION__
  17. #define __KEYTRANSLATION__
  18.  
  19. #ifndef __KEYBOARD__
  20. #include <Keyboard.h>
  21. #endif
  22. #ifndef __LOCALEOBJECTS__
  23. #include <LocaleObjects.h>
  24. #endif
  25. #ifndef __TEXTINPUTSYSTEM__
  26. #include <TextInputSystem.h>
  27. #endif
  28. #ifndef __TYPES__
  29. #include <Types.h>
  30. #endif
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. #if PRAGMA_IMPORT_SUPPORTED
  37. #pragma import on
  38. #endif
  39.  
  40. #if PRAGMA_ALIGN_SUPPORTED
  41. #pragma options align=mac68k
  42. #endif
  43.  
  44. #if FOR_SYSTEM8_COOPERATIVE
  45. typedef struct OpaqueKeyTranslationContextRef* KeyTranslationContextRef;
  46. typedef LocaleObjectRef KeyTranslationObjectRef;
  47. extern OSStatus NewKeyTranslationContext(KeyTranslationContextRef *contextRef, KeyTranslationObjectRef translationObject);
  48.  
  49. extern OSStatus DisposeKeyTranslationContext(KeyTranslationContextRef *contextRef);
  50.  
  51. extern OSStatus TranslateVirtualKeyCode(KeyTranslationContextRef contextRef, VirtualKeyCode keycode, UInt16 *character);
  52.  
  53. extern OSStatus TranslateVirtualKeyCodeBuffer(KeyTranslationContextRef contextRef, const VirtualKeyCode *keycodeBuffer, UInt32 keycodeBufferSize, UInt16 *characterBuffer, UInt32 characterBufferSize);
  54.  
  55. #endif
  56. /* FOR_SYSTEM8_COOPERATIVE*/
  57.  
  58. #if PRAGMA_ALIGN_SUPPORTED
  59. #pragma options align=reset
  60. #endif
  61.  
  62. #if PRAGMA_IMPORT_SUPPORTED
  63. #pragma import off
  64. #endif
  65.  
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69.  
  70. #endif /* __KEYTRANSLATION__ */
  71.  
  72.